package com.rikylee.bootreverseproxy.constant;

public class MyConstants {
  
  public static final String LB_PREFIX = "lb://";
  public static final String HTTP_PREFIX = "http://";
  public static final String HTTPS_PREFIX = "https://";
  
  /**
   * 成功状态码
   */
  public final static int SUCCESS_STATUS = 0;
  
  /**
   * 未知异常状态码
   */
  public final static int UNKNOWN_EXCEPTION_STATUS = -1;
  
  public final static int PARAMETER_EXCEPTION_STATUS = 500;
  
  public final static int DENIED_REQUEST_STATUS = 403;
  
  public static final String PARAMETER_MISS_MSG_TPL = "parameter %s can not be empty";
  
  public static final int NO_AVAILABLE_NODE_STATUS = 10000;
  
  public static final String NO_AVAILABLE_NODE_MSG = "no available node,please try later again!";
  
  public static final String DENIED_REQUEST_STATUS_MSG = "request too frequently, please try again later!";
}
